Improve performance of `file-truename' (bug#70036)
authorIhor Radchenko <yantar92@posteo.net>
Tue, 30 Apr 2024 11:27:04 +0000 (14:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 2 May 2024 09:39:39 +0000 (12:39 +0300)
commitbf00762745c07816e7a9c64e0fce037039852971
tree4bb0a1f9660c78fa023bcf86490712e42e84fc21
parentd15efe965d8317bb5413a8aa8caabcb9f5382206
Improve performance of `file-truename' (bug#70036)

* lisp/files.el (file-truename): Avoid repetitive calls to
`file-name-nondirectory'.  These calls contribute
significantly to CPU time.  See the benchmarks in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70036#47
lisp/files.el